All Questions
Tagged with rustfile-system
13 questions
5votes
1answer
103views
File system regex searcher
This is my first Rust project (I'm primarily a C guy). I want to know if my code is properly idiomatic (Rusty?). Also, are there any inefficiencies? The code defines an iterator (...
6votes
3answers
159views
Idiomatic and performant file hashing
I've written a small program that will accept a directory path and recursively calculate the MD5 hash of each file. ...
1vote
2answers
65views
Checking which programs are used for scripting
I have a directory where there are some script files, some binary files, and some subdirectories. I have tried to write a program which gets names of all files in directory, and excludes if they are ...
2votes
0answers
101views
Rust Undertale Save File Loader
This code's job is to load save files from a subfolder in ~/undertale-saves and save them to ~/.config/UNDERTALE_linux_steamver. ...
4votes
0answers
224views
Tar file utility - Rust
I've been working on building a Rust version of GNU tar following the spec here. As of right now, I've got the binary accepting a single argument, the path to the file/directory to tar, which is ...
3votes
1answer
849views
List and filter files in Rust
I'm learning Rust and looking for better/cleaner ways to list all file names that do not start with filter, given a pathname as ...
2votes
0answers
928views
Implementing A File and Directory Traversal Iterator in Rust
Background Traversing the file hierarchy, going through files and sub-directories from a directory, is a quite common task when doing file system search operations of some sorts. I have already ...
7votes
1answer
3kviews
Find a file in current or parent directories
As a Rust beginner, I would like to know how I could improve the following points considering the function below: Handling Path and ...
3votes
0answers
54views
Caching image thumbnail web-application based on rocket
This is my first rocket web-app. It serves images from a directory and thumbnails from a sub-directory. if no thumbnail is found for an existing image it is created on the fly. Before I launch this ...
5votes
1answer
155views
List files and folders in current dir with special handling for tty
I want to write a custom ls command to learn rust. This is what I've done as for the version 1.0. This display files and folders in a cyan or white if it's on a ...
2votes
0answers
118views
Minimal Static Site generator
For my first project with Rust, I decided to try and implement a minimal static site generator. I've never had any code review, and I've been looking for some feedback so I can get better! Brief ...
5votes
1answer
2kviews
Read contents of file with appropriate error handling (Rust)
I am trying to learn basic Rust. Is this a good way to get the contents of a file? Am I handling errors the best way? Is there any way this could be more performant? ...
8votes
1answer
198views
Ntree: a reimplementation of the tree utility
tree is described as "a recursive directory listing command that produces a depth indented listing of files" on the homepage for its Linux implementation. I don't ...